<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Cwp\V20180228\Models;
use TencentCloud\Common\AbstractModel;

/**
 * DescribeGeneralStat response structure.
 *
 * @method integer getMachinesAll() Obtain Total number of hosts
 * @method void setMachinesAll(integer $MachinesAll) Set Total number of hosts
 * @method integer getMachinesUninstalled() Obtain Total number of hosts not installed with the CWPP client
 * @method void setMachinesUninstalled(integer $MachinesUninstalled) Set Total number of hosts not installed with the CWPP client
 * @method integer getAgentsAll() Obtain Total number of CWPP clients
 * @method void setAgentsAll(integer $AgentsAll) Set Total number of CWPP clients
 * @method integer getAgentsOnline() Obtain Total number of online CWPP clients
 * @method void setAgentsOnline(integer $AgentsOnline) Set Total number of online CWPP clients
 * @method integer getAgentsOffline() Obtain Total number of CWPP clients that are offline and shut down
 * @method void setAgentsOffline(integer $AgentsOffline) Set Total number of CWPP clients that are offline and shut down
 * @method integer getAgentsPro() Obtain Total number of Pro Edition CWPP clients
 * @method void setAgentsPro(integer $AgentsPro) Set Total number of Pro Edition CWPP clients
 * @method integer getAgentsBasic() Obtain Total number of Basic Edition CWPP clients
 * @method void setAgentsBasic(integer $AgentsBasic) Set Total number of Basic Edition CWPP clients
 * @method integer getAgentsProExpireWithInSevenDays() Obtain Total number of prepaid Pro Edition CWPP clients that will expire in 7 days
 * @method void setAgentsProExpireWithInSevenDays(integer $AgentsProExpireWithInSevenDays) Set Total number of prepaid Pro Edition CWPP clients that will expire in 7 days
 * @method integer getRiskMachine() Obtain Total number of risky hosts
 * @method void setRiskMachine(integer $RiskMachine) Set Total number of risky hosts
 * @method integer getShutdown() Obtain Total number of hosts that are shut down
 * @method void setShutdown(integer $Shutdown) Set Total number of hosts that are shut down
 * @method integer getOffline() Obtain Total number of offline hosts
 * @method void setOffline(integer $Offline) Set Total number of offline hosts
 * @method integer getFlagshipMachineCnt() Obtain Number of Ultimate Edition hosts
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setFlagshipMachineCnt(integer $FlagshipMachineCnt) Set Number of Ultimate Edition hosts
Note: This field may return null, indicating that no valid values can be obtained.
 * @method integer getProtectDays() Obtain Protection duration, in days
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setProtectDays(integer $ProtectDays) Set Protection duration, in days
Note: This field may return null, indicating that no valid values can be obtained.
 * @method integer getAddedOnTheFifteen() Obtain Number of hosts added in the last 15 days
Note: This field may return null, indicating that no valid values can be obtained.
 * @method void setAddedOnTheFifteen(integer $AddedOnTheFifteen) Set Number of hosts added in the last 15 days
Note: This field may return null, indicating that no valid values can be obtained.
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class DescribeGeneralStatResponse extends AbstractModel
{
    /**
     * @var integer Total number of hosts
     */
    public $MachinesAll;

    /**
     * @var integer Total number of hosts not installed with the CWPP client
     */
    public $MachinesUninstalled;

    /**
     * @var integer Total number of CWPP clients
     */
    public $AgentsAll;

    /**
     * @var integer Total number of online CWPP clients
     */
    public $AgentsOnline;

    /**
     * @var integer Total number of CWPP clients that are offline and shut down
     */
    public $AgentsOffline;

    /**
     * @var integer Total number of Pro Edition CWPP clients
     */
    public $AgentsPro;

    /**
     * @var integer Total number of Basic Edition CWPP clients
     */
    public $AgentsBasic;

    /**
     * @var integer Total number of prepaid Pro Edition CWPP clients that will expire in 7 days
     */
    public $AgentsProExpireWithInSevenDays;

    /**
     * @var integer Total number of risky hosts
     */
    public $RiskMachine;

    /**
     * @var integer Total number of hosts that are shut down
     */
    public $Shutdown;

    /**
     * @var integer Total number of offline hosts
     */
    public $Offline;

    /**
     * @var integer Number of Ultimate Edition hosts
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $FlagshipMachineCnt;

    /**
     * @var integer Protection duration, in days
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $ProtectDays;

    /**
     * @var integer Number of hosts added in the last 15 days
Note: This field may return null, indicating that no valid values can be obtained.
     */
    public $AddedOnTheFifteen;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param integer $MachinesAll Total number of hosts
     * @param integer $MachinesUninstalled Total number of hosts not installed with the CWPP client
     * @param integer $AgentsAll Total number of CWPP clients
     * @param integer $AgentsOnline Total number of online CWPP clients
     * @param integer $AgentsOffline Total number of CWPP clients that are offline and shut down
     * @param integer $AgentsPro Total number of Pro Edition CWPP clients
     * @param integer $AgentsBasic Total number of Basic Edition CWPP clients
     * @param integer $AgentsProExpireWithInSevenDays Total number of prepaid Pro Edition CWPP clients that will expire in 7 days
     * @param integer $RiskMachine Total number of risky hosts
     * @param integer $Shutdown Total number of hosts that are shut down
     * @param integer $Offline Total number of offline hosts
     * @param integer $FlagshipMachineCnt Number of Ultimate Edition hosts
Note: This field may return null, indicating that no valid values can be obtained.
     * @param integer $ProtectDays Protection duration, in days
Note: This field may return null, indicating that no valid values can be obtained.
     * @param integer $AddedOnTheFifteen Number of hosts added in the last 15 days
Note: This field may return null, indicating that no valid values can be obtained.
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("MachinesAll",$param) and $param["MachinesAll"] !== null) {
            $this->MachinesAll = $param["MachinesAll"];
        }

        if (array_key_exists("MachinesUninstalled",$param) and $param["MachinesUninstalled"] !== null) {
            $this->MachinesUninstalled = $param["MachinesUninstalled"];
        }

        if (array_key_exists("AgentsAll",$param) and $param["AgentsAll"] !== null) {
            $this->AgentsAll = $param["AgentsAll"];
        }

        if (array_key_exists("AgentsOnline",$param) and $param["AgentsOnline"] !== null) {
            $this->AgentsOnline = $param["AgentsOnline"];
        }

        if (array_key_exists("AgentsOffline",$param) and $param["AgentsOffline"] !== null) {
            $this->AgentsOffline = $param["AgentsOffline"];
        }

        if (array_key_exists("AgentsPro",$param) and $param["AgentsPro"] !== null) {
            $this->AgentsPro = $param["AgentsPro"];
        }

        if (array_key_exists("AgentsBasic",$param) and $param["AgentsBasic"] !== null) {
            $this->AgentsBasic = $param["AgentsBasic"];
        }

        if (array_key_exists("AgentsProExpireWithInSevenDays",$param) and $param["AgentsProExpireWithInSevenDays"] !== null) {
            $this->AgentsProExpireWithInSevenDays = $param["AgentsProExpireWithInSevenDays"];
        }

        if (array_key_exists("RiskMachine",$param) and $param["RiskMachine"] !== null) {
            $this->RiskMachine = $param["RiskMachine"];
        }

        if (array_key_exists("Shutdown",$param) and $param["Shutdown"] !== null) {
            $this->Shutdown = $param["Shutdown"];
        }

        if (array_key_exists("Offline",$param) and $param["Offline"] !== null) {
            $this->Offline = $param["Offline"];
        }

        if (array_key_exists("FlagshipMachineCnt",$param) and $param["FlagshipMachineCnt"] !== null) {
            $this->FlagshipMachineCnt = $param["FlagshipMachineCnt"];
        }

        if (array_key_exists("ProtectDays",$param) and $param["ProtectDays"] !== null) {
            $this->ProtectDays = $param["ProtectDays"];
        }

        if (array_key_exists("AddedOnTheFifteen",$param) and $param["AddedOnTheFifteen"] !== null) {
            $this->AddedOnTheFifteen = $param["AddedOnTheFifteen"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
